package su.samcom.calc.model.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: Владислав
 * Date: 19.11.13
 * Time: 23:24
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "calc_samcom_su.country")
public class Country implements Serializable {
    private static final long serialVersionUID = -6846347085079410847L;

    private Long id;
    private String name;

    @Id
    @SequenceGenerator(name = "country_gen", sequenceName = "calc_samcom_su.country_seq", allocationSize = 1)
    @GeneratedValue(generator = "country_gen", strategy = GenerationType.SEQUENCE)
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
